<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>demo</title>
    <script src="/js/jquery-1.7.2.js" type="text/javascript"></script>
</head>
<body>
{% if dms %}
    {% for dm in dms %}
        {{ dm.from_user.username }}:{{ dm.content }} <a href="/dm/{{ dm.from_user.username }}/">回复</a> <a href="/deldm/{{ dm.id }}/">删除</a><br>
    {% endfor %}
{% endif %}
</body>
</html>